/**
 * Dear programmer:
 * When I wrote this code, only god and I knew how it worked.
 * Now, only god knows it!
 *
<<<<<<< HEAD
 * @author: swx  Date: 2019-03-20
 */

import {Action} from "../../../configuration/ActionCreator"
import {retrieveOrderMsg,retrieveOrderMsgByRoom,retrieveScurryDefault,HoLoseAddRequest,orderSweepScurrySave,retrieveHoLoseRequest,retrieveWHSKDict,retrieveRoomHo_Ledger,setRoomOOOSRequest,retrieveLogRecordRequest,retrieveroomooosRequest,housekeepingSweepSetStatusRequest} from "../../../request/RoomsViewRequest"
import {requestSave_linen} from "../../../request/HousekeeperRequest";

/**
 * 获取数据
 * @str {string}
 */
export const RetrieveRoomMSG = 'RetrieveRoomMSG';
export const retrieveRoomMSG = (str,procedure) => {
    let action = Action(RetrieveRoomMSG);
    return dispatch => dispatch(retrieveOrderMsg(action, str,procedure))
}

/**
 * 获取数据
 * @str {string}
 */
export const RetrieveRoomMSGByRoom = 'RetrieveRoomMSGByRoom';
export const retrieveRoomMSGByRoom = (str,procedure) => {
    let action = Action(RetrieveRoomMSGByRoom);
    return dispatch => dispatch(retrieveOrderMsgByRoom(action, str,procedure))
};

export const RetrieveRoommates = 'RetrieveRoommates';
export const retrieveRoommates = (str,procedure) => {
    let action = Action(RetrieveRoommates);
    return dispatch => dispatch(retrieveOrderMsgByRoom(action, str,procedure))
};

export const RetrieveGuestLedger = 'RetrieveGuestLedger';
export const retrieveGuestLedger = (str) => {
    let action = Action(RetrieveGuestLedger);
    return dispatch => dispatch(retrieveRoomHo_Ledger(action, str))
};



/**
 * 获取数据
 * @str {string}
 */
export const GetScurryDefault = 'GetScurryDefault';
export const getScurryDefault = (str) => {
    let action = Action(GetScurryDefault);
    return dispatch => dispatch(retrieveScurryDefault(action, str))
};

/**
 * 获取数据
 * @str {string}
 */
export const RetrieveLogRecord = 'RetrieveLogRecord';
export const retrieveLogRecord = (str) => {
    let action = Action(RetrieveLogRecord);
    return dispatch => dispatch(retrieveLogRecordRequest(action, str))
};

/**
 * 获取数据
 * @str {string}
 */
export const RetrieveHoLose = 'RetrieveHoLose';
export const retrieveHoLose = (str) => {
    let action = Action(RetrieveHoLose);
    return dispatch => dispatch(retrieveHoLoseRequest(action, str))
};

export const HoLoseAdd = 'HoLoseAdd';
export const hoLoseAdd = (str) => {
    let action = Action(HoLoseAdd);
    return dispatch => dispatch(HoLoseAddRequest(action, str))
};



export const SetRoomOOOS = 'SetRoomOOOS';
export const setRoomOOOS = (str,procedure) => {
    let action = Action(SetRoomOOOS);
    return dispatch => dispatch(setRoomOOOSRequest(action, str,procedure))
};



export const Retrieveroomooos = 'Retrieveroomooos';
export const retrieveroomooos = (str) => {
    let action = Action(Retrieveroomooos);
    return dispatch => dispatch(retrieveroomooosRequest(action, str))
};



export const HousekeepingSweepSetStatus = 'HousekeepingSweepSetStatus';
export const housekeepingSweepSetStatus = (str) => {
    let action = Action(HousekeepingSweepSetStatus);
    return dispatch => dispatch(housekeepingSweepSetStatusRequest(action, str))
};



/**
 * 新建赶房工单
 * @str {string}
 */
export const SaveScurryOrder = 'SaveScurryOrder';
export const saveScurryOrder = (str) => {
    let action = Action(SaveScurryOrder);
    return dispatch => dispatch(orderSweepScurrySave(action, str))
};


/**
 * 物品/服务
 * @str {string}
 */
export const GetWHSKDict = 'GetWHSKDict';
export const getWHSKDict = (str) => {
    let action = Action(GetWHSKDict);
    return dispatch => dispatch(retrieveWHSKDict(action, str))
};

/**
 * 住房打扫
 */
export const SaveRoomClean = 'SaveRoomClean';
export const saveRoomClean = (str,str3) => {
    let action = Action(SaveRoomClean);
    return dispatch => dispatch(requestSave_linen(action,str,str3))
};

/**
 * 遗留查找
 */
export const SaveSearchMiss = 'SaveSearchMiss';
export const saveSearchMiss = (str,str3) => {
    let action = Action(SaveSearchMiss);
    return dispatch => dispatch(requestSave_linen(action,str,str3))
};

/**
 * 客人催服务
 */
export const SaveGuestService = 'SaveGuestService';
export const saveGuestService = (str,str3) => {
    let action = Action(SaveGuestService);
    return dispatch => dispatch(requestSave_linen(action,str,str3))
};

/**
 * 物品/服务
 */
export const SaveGoodsService = 'SaveGoodsService';
export const saveGoodsService = (str,str3) => {
    let action = Action(SaveGoodsService);
    return dispatch => dispatch(requestSave_linen(action,str,str3))
};








